package com.framework.myandroid

import android.content.Context
import androidx.multidex.MultiDexApplication

class MyApplication private constructor() : MultiDexApplication() {
    lateinit var appContext: Context
    private val TAG = "MyApplication"

    companion object {
        val instance: MyApplication by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) { MyApplication() }
    }

    fun getContext(): Context {
        return appContext
    }

    override fun onCreate() {
        super.onCreate()
//        SdCard.getInstance().mkdirs()
        appContext = applicationContext
//        initApiClient(ApiConstants.DATA_SOURCE_TYPE_ONLINE);
//        initApiClient(ApiConstants.DATA_SOURCE_TYPE_TEST)
//        initApiClient(ApiConstants.DATA_SOURCE_TYPE_DEV);
    }


}